home *** CD-ROM | disk | FTP | other *** search
- Path: cea.fr!usenet
- From: Xavier Tarrago <tarrago@lcus15.saclay.cea.fr>
- Newsgroups: comp.lang.c++
- Subject: Re: Smart Pointer Implementation & question
- Date: 16 Jan 1996 09:07:55 GMT
- Organization: CEA Commissariat a l'Energie Atomique, France.
- Message-ID: <4dfptb$5i6@news.cea.fr>
- References: <4dfe36$d99@grid.direct.ca>
- NNTP-Posting-Host: lcus15.saclay.cea.fr
-
- ken@direct.ca (Ken Clark) wrote:
- >
- > Hi. I have implemented a reference counting smart pointer class. It works
- > well, except that I can't get a basic behavior of normal pointers: automatic
- > casting of subclass pointers. Consider class shape and subclass circle. I
- > I think I understand why I can't do this (Stoustrup's square peg in round hole
- ..
- > analogy). My question is, how do I get this behavior if that is what I want?
- >
- I have got a very interesting paper on that subject. I got it on the web
- but I can't remember where. Maybe someone here could know.
- "Smart Pointers : They're Smart, but They're Not Pointers"
- 20 pages from Daniel R. Edelson ref UCSC-CRL-92-27 (10 June 92)
- It is a discussion about differences between pointers & smart pointers
- and implementation strategies to get them as close as possible.
- Hope it helps,
- X.Tarrago
-